﻿#ifndef GLOBAL_H
#define GLOBAL_H

#include <QString>
#include <QSoundEffect>
#include <QMediaPlayer>
#include <QHostInfo>
#include <QNetworkInterface>
#include <QFileInfoList>
#include <QDir>

class Global
{
public:
    Global() {}
    static QString soundSelect;
    static QMediaPlayer* player;
    static QString currMusic;
    static int currVoice;
    static void playSoundEffect(QString soundType, int times, float voice);
    static void playSoundEffect(QString soundType);

    static const int GB = 1024 * 1024 * 1024;

    static const QString getPcName();       //获取本机名称
    static const QString getLocal_IP();     //获取本地IP地址
    static const QString getAccountName();  //获取账户名称
};

#endif // GLOBAL_H
